<template>
    <div>
        <el-card class="box-card" shadow="never">
            <div slot="header" class="clearfix">
                <span>立即领取</span>
            </div>
            <el-alert
                description="一旦确认提交后，卡券将获取到您账户，请在我的余额中查看"
                title="友情提示"
                type="success">
            </el-alert>
            <span>当前的uuid:{{ id }}</span>

        </el-card>
        <el-button-group>
            <el-button class="mt-3" type="primary" @click="onSubmit">领取</el-button>
        </el-button-group>
    </div>
</template>

<script>

export default {
    route: {path: `voucher/:id/verify`},
    data() {
        return {
            id: this.$route.params.id
        }
    },
    methods: {
        async onSubmit() {
            await this.axios.post(`mini/trade/voucher/${this.id}/send`)
        }
    }
}
</script>

<style scoped>

</style>
